<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
			<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
function printHtml(html) {
var bodyHtml = document.body.innerHTML;
document.body.innerHTML = html;
window.print();
document.body.innerHTML = bodyHtml;
}
function onprint() {
var html = $("#printArea").html();
printHtml(html);
}
</script>
</head>
<body>
<div>
<div id="printArea" style="width: 500px; text-align: left;">
<table style="border: 1px solid red;">
	<tr>
		<td>11</td>
	<td>11</td>
	<td>11</td>
	<td>11</td>
	<td>11</td>
	</tr>
	<tr>
		<td>11</td>
	<td>11</td>
	<td>11</td>
	<td>11</td>
	<td>11</td>
	</tr>
	<tr>
		<td>11</td>
	<td>11</td>
	<td>11</td>
	<td>11</td>
	<td>11</td>
	</tr>
</table>
</div>
<br />
<div>
<input type="button" id="btnPrint" onclick="onprint()" value="print" />
</div>
</div>
	</body>
</html>
